package com.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Auther: luobiao
 * @Date: 2020/6/6 15:34
 * @Description: 访问jsp页面
 */
@Controller
@RequestMapping("jsp")
public class JspTestController {

    //http://localhost:8080/jsp/index
    //注意：需要添加tomcat-embed-jasper依赖，还有idea启动配置中要选择Working directory 要选$MODULE_DIR$
    @RequestMapping("index")
    public String index(){
        return "index";
    }


}
